package com.macro.mall.portal.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.portal.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AddressController {
    @Autowired
    private AddressService service;
    /**
     * 订单地址查询
     */
    @GetMapping("/selAddrss/{id}")
    public CommonResult<String> selAddrss(@PathVariable Integer id) {
        CommonResult<String> result = service.selAddrss(id);
        return result;
    }
}
